<?php
session_start();
require_once('../utils.php');
if(isAdmin()){
	$link = getConnection();
	$query= sprintf("UPDATE ee_content SET content_html='%s' WHERE content_id=%s", mysql_real_escape_string($_POST['text']), mysql_real_escape_string($_POST['id']));
	$res = mysql_query($query, $link);
	mysql_close($link);
	echo $query;
}
?>